<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
	<head>
		<meta charset="utf-8">

		<!-- DNS prefetch -->
		<link rel=dns-prefetch href="//fonts.googleapis.com">

		<!-- Use the .htaccess and remove these lines to avoid edge case issues.
		More info: h5bp.com/b/378 -->
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

		<title>ePttAvm - Yönetim Paneli</title>
		<meta name="description" content="">
		<meta name="author" content="">

		<!-- Mobile viewport optimized: j.mp/bplateviewport -->
		<meta name="viewport" content="width=device-width,initial-scale=1">

		<!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
		<!-- CSS: implied media=all -->
		<!-- CSS concatenated and minified via ant build script-->
		<link rel="stylesheet" href="css/style.css"> <!-- Generic style (Boilerplate) -->
		<link rel="stylesheet" href="css/960.fluid.css"> <!-- 960.gs Grid System -->
		<link rel="stylesheet" href="css/main.css"> <!-- Complete Layout and main styles -->
		<link rel="stylesheet" href="css/buttons.css"> <!-- Buttons, optional -->
		<link rel="stylesheet" href="css/lists.css"> <!-- Lists, optional -->
		<link rel="stylesheet" href="css/icons.css"> <!-- Icons, optional -->
		<link rel="stylesheet" href="css/notifications.css"> <!-- Notifications, optional -->
		<link rel="stylesheet" href="css/typography.css"> <!-- Typography -->
		<link rel="stylesheet" href="css/forms.css"> <!-- Forms, optional -->
		<link rel="stylesheet" href="css/tables.css"> <!-- Tables, optional -->
		<link rel="stylesheet" href="css/charts.css"> <!-- Charts, optional -->
		<link rel="stylesheet" href="css/jquery-ui-1.8.15.custom.css"> <!-- jQuery UI, optional -->
		<!-- end CSS-->

		<!-- Fonts -->
		<link href="//fonts.googleapis.com/css?family=PT+Sans" rel="stylesheet" type="text/css">
		<!-- end Fonts-->

		<!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->

		<!-- All JavaScript at the bottom, except for Modernizr / Respond.
		Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
		For optimal performance, use a custom Modernizr build: www.modernizr.com/download/ -->
		<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
		<script>window.jQuery || document.write('<script src="js/libs/jquery-1.6.2.min.js"><\/script>')</script>


		<!-- scripts concatenated and minified via ant build script-->
		<script defer src="js/plugins.js"></script> <!-- lightweight wrapper for consolelog, optional -->
		<script defer src="js/mylibs/jquery.notifications.js"></script> <!-- Notifications  -->
		<script defer src="js/mylibs/jquery.uniform.min.js"></script> <!-- Uniform (Look & Feel from forms) -->
		<script defer src="js/mylibs/jquery.validate.min.js"></script> <!-- Validation from forms -->
		<script defer src="js/mylibs/jquery.tipsy.js"></script> <!-- Tooltips -->
		<script defer src="js/common.js"></script> <!-- Generic functions -->
		<script defer src="js/script.js"></script> <!-- Generic scripts -->
		<script src="js/libs/modernizr-2.0.6.min.js"></script>
		<?php
			if($_POST)
			{
				?>
				<script type="text/javascript">
					 $().ready(function() {
						<?php
							if($sonuc['sonuc'] == true)
							{
								?>
								$('#login-form').alertBox('Giriş Başarılı. Yönlendiriliyorsunuz... (<a href="index.php">Beklememek İçin Tıklayınız.</a>)', {type: 'success'});
								window.location.href= 'index.php';
								<?php
							}
							else
							{
								?>
								$('#login-form').alertBox('Hatalı kullanıcı adı veya şifre', {type: 'error'});
								<?php
							}
						?>
					 });
				</script>
				<?php
			}
		?>                      
	</head>

	<body class="special-page">

		<!-- Begin of #container -->
		<div id="container">

			<!-- Begin of LoginBox-section -->
			<section id="login-box">
				<center><img src="img/logo.png" alt="ePttAvm Logo" title="ePttAvm"></center>
				<div class="block-border">
					<div class="block-header">
						<h1>Yönetici Girişi</h1>
					</div>
					<form id="login-form" class="block-content form" action="" method="post">
						<p class="inline-small-label">
							<label for="username">Kullanıcı Adı</label>
							<input type="text" name="username" value="" class="required">
						</p>
						<p class="inline-small-label">
							<label for="password">Şifre</label>
							<input type="password" name="password" value="" class="required">
						</p>
						<p>
							<label><input type="checkbox" name="keep_logged" /> Beni Hatırla.</label>
						</p>

						<div class="clear"></div>

						<!-- Begin of #block-actions -->
						<div class="block-actions">
							<ul class="actions-left">

								<li class="divider-vertical"></li>
								<li><a class="button red" id="reset-login" href="javascript:void(0);">İPTAL</a></li>
							</ul>
							<ul class="actions-right">
								<li><input type="submit" class="button" value="GİRİŞ"></li>
							</ul>
						</div> 
						<!--! end of #block-actions -->
					</form>


				</div>
			</section> <!--! end of #login-box -->
		</div> <!--! end of #container -->


		<!-- JavaScript at the bottom for fast page loading -->

		<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
		

		<script type="text/javascript">
			$().ready(function() {

				/*
				* Validate the form when it is submitted
				*/
				var validatelogin = $("#login-form").validate({
					invalidHandler: function(form, validator) 
					{
						var errors = validator.numberOfInvalids();
						if (errors) {
							var message = errors == 1
							? 'Lütfen kullanıcı adı ve şifrenizi belirtiniz.'
							: 'Lütfen kullanıcı adı ve şifrenizi belirtiniz.';
							$('#login-form').removeAlertBoxes();
							$('#login-form').alertBox(message, {type: 'error'});

						} else {
							$('#login-form').removeAlertBoxes();
						}
					}
				});

				jQuery("#reset-login").click(function() {
					validatelogin.resetForm();
				});

			});
		</script>
		<!-- end scripts-->

		<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
		chromium.org/developers/how-tos/chrome-frame-getting-started -->
		<!--[if lt IE 7 ]>
		<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
		<script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
		<![endif]-->
	   <div style="display: none;">
		<!-- Yandex.Metrika informer --><a href="http://metrica.yandex.com.tr/stat/?id=19260964&amp;from=informer" target="_blank" rel="nofollow"><img src="//bs.yandex.ru/informer/19260964/3_1_FFFFFFFF_EFEFEFFF_0_pageviews" style="width:88px; height:31px; border:0;" alt="Yandex.Metrica" title="Yandex.Metrica: bugünün verileri (gösterimler, ziyaretler ve tekil ziyaretçiler)" onclick="try{Ya.Metrika.informer({i:this,id:19260964,type:0,lang:'tr'});return false}catch(e){}"/></a><!-- /Yandex.Metrika informer --><!-- Yandex.Metrika counter --><script type="text/javascript">var yaParams = {/*Ziyaret parametreleri burada*/};</script><script type="text/javascript">(function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter19260964 = new Ya.Metrika({id:19260964, webvisor:true, clickmap:true, trackLinks:true, accurateTrackBounce:true, trackHash:true,params:window.yaParams||{ }}); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks");</script><noscript><div><img src="//mc.yandex.ru/watch/19260964" style="position:absolute; left:-9999px;" alt="" /></div></noscript><!-- /Yandex.Metrika counter -->
	   </div>
	</body>
</html>